<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>维保</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="viewport" content="width=device-width, user-scalable=no">
		<meta content="yes" name="apple-mobile-web-app-capable">
		<meta name=”apple-mobile-web-app-status-bar-style” content=”default” />
		<meta name=”apple-mobile-web-app-status-bar-style” content=”black” />
		<meta name=”apple-mobile-web-app-status-bar-style” content=”black-translucent” />
		<meta content="telephone=no" name="format-detection">
		<meta content="email=no" name="format-detection">
		<meta name="format-detection" content="telephone=no"/>
		<link rel="stylesheet" href="${s.base}/mobile/css/wbNew.css" />
		<link rel="stylesheet" href="${s.base}/mobile/css/swiper.min.css" />
		<script type="text/javascript" src="${s.base}/mobile/js/fontSize.js"></script>
		
	</head>
	<body>
		<div class="main-content75" style="background:#f4f4f4;">
		<div class="wb-top">
			<div class="wb-banner">
				<div class="swiper-container" id="weBanner">
					<div class="swiper-wrapper">
						<#list wbBannerList as wbBanner>
							<#if wbBanner.url??>
					  			<div class="swiper-slide" onclick="window.location.href='${wbBanner.url}'" style="background: url(/sysFile/showFileByObjectId?objectId=${wbBanner.picture}) center center no-repeat; background-size:cover;"></div>
							<#else>
								<div class="swiper-slide" style="background: url(/sysFile/showFileByObjectId?objectId=${wbBanner.picture}) center center no-repeat; background-size:cover;"></div>
							</#if>
						</#list>
					</div>
					<!-- Add Pagination -->
					<div class="swiper-pagination"></div>
				</div>
			</div>
			<div class="web-topNotice cont-block">
				<div class="web-topNotice-nei">
					<div class="web-topNotice-label"><i class="cyfont">&#xe64f;</i>公告</div>
					<!-- 公告栏切换 -->
					
						<div class="swiper-container" id="wbNotice">
							<div class="swiper-wrapper">
								<#list wbNoticeList as wbNotice>
							  <div class="swiper-slide"><div class="web-topNotice-list ellipsis" onclick="window.location.href='/phone/wb/noticeDesc?id=${wbNotice.id}'">${wbNotice.title}<div class="noticie-rightbtn"><i class="cyfont">&#xe60e;</i></div></div></div>
								</#list>
							</div>
							
						</div>
				</div>
			</div>
		</div>
		<div class="cont-block">
			<div class="service-kind-tit mart25"><span>维修种类</span></div>
			<div class="service-kind-list clearfix">
				<ul>
					<li><a href="/phone/wb/simpleRepair?token=${token}&applyId=${applyId}"><img src="${s.base}/mobile/images/wb/jybx.png"></a></li>
					<li><img src="${s.base}/mobile/images/wb/sbbx.png" onclick="saoma()"></li>
				</ul>
			</div>
		</div>
		<div class="cont-block mart20">
			<div class="wb-function-list clearfix">
				<ul>
					<li onclick="window.location.href='/phone/wb/repairList?token=${token}&applyId=${applyId}'"><img src="${s.base}/mobile/images/wb/bxjl.png"><br><h1>维修记录</h1></li>
					<li onclick="window.location.href='/phone/wb/notice?token=${token}&applyId=${applyId}'"><img src="${s.base}/mobile/images/wb/ggxx.png"><br><h1>公告记录</h1></li>
					<li onclick="window.location.href='/phone/wb/assignmentList?token=${token}&applyId=${applyId}&status=1'"><img src="${s.base}/mobile/images/wb/wxdd.png"><br><h1>等待分配</h1></li>
					<li onclick="window.location.href='/phone/wb/assignmentList?token=${token}&applyId=${applyId}&status=2'"><img src="${s.base}/mobile/images/wb/xjjl.png"><br><h1>等待维修</h1></li>
					<li><img src="${s.base}/mobile/images/wb/zxkf.png"><br><h1>联系我们</h1></li>
				</ul>
			</div>
		</div>
	</div>
	<!-- 底部菜单开始-->
	<div class="circle-ment-ctn"></div>
	<div class="circle-ment-ctn-mini" onclick="saoma()"><i class="cyfont">&#xe601;</i></div>
	<div class="wb-bot-fixed">
		<ul>
			<li class="checked">
				<a href="/phone/wb/index?token=${token}&applyId=${applyId}">
				<div class="wb-bot-menupic">
					<i class="cyfont">&#xe665;</i>
				</div>
				<h2>首页</h2>
				</a>
			</li>
			<li >
				
				<div onclick="saoma()" class="wb-bot-menupic"></div>
				<h2 onclick="saoma()">扫一扫维修</h2>
			</li>
			<li>
				<a href="/phone/wb/my?token=${token}&applyId=${applyId}">
				<div class="wb-bot-menupic">
					<i class="cyfont">&#xe610;</i>
				</div>
				<h2>我的</h2>
				</a>
			</li>
		</ul>
	</div>
	<!-- 底部菜单结束-->
	</body>
	<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
	<script type="text/x-javascript" src="${s.base}/mobile/js/swiper.min.js"></script>
	<script type="text/javascript" src="${s.base}/mobile/js/jquery-2.1.4.min.js"></script>
	<!--js分享代码开始-->
	<input type="hidden" value="${jSTicketShareResponse.appid}" id="appid" />
	<input type="hidden" value="${jSTicketShareResponse.fxTitle}" id="fxTitle" />
	<input type="hidden" value="${jSTicketShareResponse.fxImgUrl}" id="fxImgUrl" />
	<input type="hidden" value="${jSTicketShareResponse.fxDesc}" id="fxDesc" />
	<input type="hidden" value="${jSTicketShareResponse.fxUrl}" id="fxUrl" />
	<input type="hidden" value="${jSTicketShareResponse.nonceStr}" id="nonceStr" />
	<input type="hidden" value="${jSTicketShareResponse.timestamp}" id="timestamp" />
	<input type="hidden" value="${jSTicketShareResponse.signature}" id="signature" />
	<script src="${s.base}/mobile/js/share.js"></script>
	<script>
		var token="${token}";
        var applyId="${applyId}";
	    var swiper = new Swiper('#weBanner', {
	      centeredSlides: true,
	      autoplay: {
	        delay: 2500,
	        disableOnInteraction: false,
	      },
	      pagination: {
	        el: '.swiper-pagination',
	        clickable: true,
	      },
	      navigation: {
	        nextEl: '.swiper-button-next',
	        prevEl: '.swiper-button-prev',
	      },
	    });
		var wbNotice = new Swiper('#wbNotice', {
		 direction: 'vertical',
		 loop:true,
		  autoplay: {
		    delay: 3000,
		    disableOnInteraction: false,
		  },
		});
		$(".wb-bot-fixed ul li").click(function(){
			$(".wb-bot-fixed ul li").removeClass("checked")
			$(this).addClass("checked")
		})
        function saoma() {
            scanQRCode(function(result) {
                if((result.indexOf("&") > -1)){
                    var parmas=result.split("&");
                    if(parmas[1]=='1'){
                        window.location.href="/phone/wb/saceRepair?token="+token+"&applyId="+applyId+"&roomId="+parmas[0];
                    }else{
                        window.location.href="/phone/wb/saceRepair?token="+token+"&applyId="+applyId+"&devicesId="+parmas[0];
                    }
                }else {
                    $.toast("二维码格式有误", "text");
                }

            });
        }
	  </script>
</html>
